Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Liferay 6.2

Featured

How to add custom portlet in Liferay Control Panel section

Hello Guys Liferay allow to create custom portlet to write own business logic or controller code. Portlet is a small application of the liferay. When we need to define rules on the custom portlet, So we need to add custom portlet in liferay...

How to configure memory argument and server mode for Liferay in Tomacat server?

To increase memory and change server mode you just need to write below arguments in setenv.sh file. Example: path: /bundles/tomcat-7.0.42/bin/setenv.sh CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -...

Mailing templates in Liferay

Hello Friends, The Below code will show How you can send the mail using the mailing template in liferay. view.jsp <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> <%@ taglib uri="http://liferay.com/tld/aui" pre...

Overriding Login Struts action in liferay

We can override Login Struts action by using Hook. In the below example we are overriding struts action "/login/login". When a user login in Liferay "com.liferay.portlet.login.action.LoginAction" is the action class that calls. Follow the b...

Using Model Hints in Liferay

Liferay Service Builder provides users a way to customize input fields and model entities by specifying related information as model hints in a single file called portlet-model-hints.xml in projects docroot/WEB-INF/src/META-INF folder. But we nee...

Creating a struts action in Liferay

We can create custom Struts action in Liferay by using Hooks, these type of Hook is called as Liferay Struts Action Hook. Follow the below steps to create a Struts Action: Create Liferay Plugin Project of type Hook. Write the below cod...

Explain portlet.xml, liferay-portlet.xml and liferay-display.xml

When we create a new portlet in Liferay, the folder structure is created as below: /PORTLET-NAME/ build.xml /docroot/ /css/ /js/ /WEB-INF/ /src/ (not created by default) liferay-di...

How to extract HttpServletRequest object from Portlet ActionRequest object?

When we submit a form or make an AJAX call we need to extract HttpServletRequest object from Portlet ActionRequest object to get the parameter values in action method. By writing the below lines you can easily extract HttpServletRequest object...

How to override existing Struts Action by Struts Action Hook?

We can modify Liferay JSP, services, properties by using Hooks. One of the main use of Hook is we can override existing struts actionand also we can add custom struts action, these type of Hook is called as Liferay Struts Action Hook. I'm taki...

How to read ActionRequest parameters?

If you have defined an input field as below: <aui:input type="text" name="emailId" value="<%= emailId %>" /> then, you can read the value of emailId parameter in action method by the following ways: 1- HttpServletReques...

How to extract HttpServletRequest object from Portlet RenderRequest object?

Sometimes when we pass data from action method to a JSP and from JSP to a portlet's render phase then we need to extract HttpServletRequest object from Portlet RenderRequest object to get the parameter values. By writing the below lines you ca...

Liferay - Using the search container to present your data

The Liferay Search container can provide us the many features using that we can simply show the data in grid format and apply pagination on that. We can configure other multiple tags inside the search container. Syntax:- <liferay-ui:sea...

Liferay Validating user-submitted forms

In Liferay we can Validating the user submitted form or Validating AUI input fields. You have to add aui:validator tag and specify the appropriate attributes which we define with name property for ex: required,minLength etc . The Below Example c...

Sample Forms with Alloy UI Tag Libs

In Liferay 6.2 we can use the forms with Alloy UI tags . The Alloy UI Tags can provide the way to do activity with Simple Alloy UI forms same as HTML forms tags. By the below Example we can show how to use Forms with Alloy UI. Example: <...

How to add Calendar control to Alloy UI form in Liferay

Here we can show how you can add the calendar control in your Alloy UI form. The below example explains how you can put your calendar control on textarea in your Alloy UI form. Example: <script> YUI().use( 'aui...

How to implement Change Password functionality in custom portlet in Liferay 6.2

To implement the change password functionality into your custom portlet in Liferay 6.2, just follow the below steps: 1- Write the below line in liferay-portlet.xml file for the portlet in with you want to perform action to change the password ...

How to download file in liferay 6.2 ?

Hello Guy's Below code will help you to download file from server using liferay 6.2. Here I am writing a portlet to download file. For better understanding create portlet in your eclipse and follow below steps : Step: 1 Edit view.jsp an...

Activate deactivated user in Liferay 6.2

Let say you deactivated account in liferay, it won't be visible in Users by default. And if you try to re-register it will give error that this user already exists. Hence in order to activate the deactivated account do following: Go to Control...

How to search record from dynamic data list in Liferay 6.2?

Hello Guy's Some time many of us faces difficultly in searching record from dynamic data list in Liferay 6.2, so for your help below I am mentioning how you can do this- Here I have created two methods for search record from dynamic data lis...

How to change dateformat of DDLRecord created date in Liferay 6.2

Hello guys, Some programmers many time faces difficulty while changing date format in liferay. Therefore By Below example, I am going to guide you How to change date format in liferay? Given bellow is the date format in GMT of liferay "...

How to retrieve or get records from DDLRecord in liferay 6.2

Hello guys To retrieve a record form DDLRecord in liferay 6.2 please follow the below given code. Here in below code I am retrieving records from DDLRecord according recordId. here recordId = 11207. List<DDLRecord> ddlRecords ...

Two level or multilevel workflow for Liferay 6.2

Hello guys, many times developers got stuck into the issue that How to create Two level or multilevel workflow for Liferay 6.2. So here below I have created two level or multilevel workflow for liferay 6.2. In which first approver approve the ...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: